#!python3

# pyecharts-gallery所有图形详见：https://gallery.pyecharts.org/#/

from pyecharts import options as opts
from pyecharts.charts import Map

dataList = [['广东', 119], ['北京', 88], ['上海', 65], ['江西', 78],
        ['湖南', 46], ['浙江', 147], ['江苏', 105], ['新疆', 125]]

c = (
    Map()
    .add("中华人民共和国", dataList, "china")
    .set_global_opts(title_opts=opts.TitleOpts(title="The People's Republic of CHINA"))
    .render("./html/map_base.html")
)